package com.yadong.smarthome2.protocol2;

import android.util.Log;


public class ALog {
    public static void logd(Object object, String message) {
        System.out.println(object.getClass().getSimpleName()+ ":" +  message);
    }

    public static void loge(Object object, String message) {
        System.out.println("error:" + object.getClass().getSimpleName() + ":" +  message);
    }

    public static void loge(Object object, String message, Exception e) {
        System.out.println("error:" + object.getClass().getSimpleName()
                + ":" +  message + ":" + e.getStackTrace());
    }

    public static void loge(String tag, String message) {
        Log.e(tag, message);
    }
}
